<extend name="base" />
<block name="style2">
</block>
<block name="js2">
    <script type="text/javascript" src="__PUBLIC__/Module/JS/discount.js"></script>
    <script type="text/javascript">
        $(function(){
            $('button[name="back"]').click(function(event) {
                window.location.href='<{:U("Home/Module/discount",array("status"=>"info","type"=>$type,"id"=>$modid))}>';
            });
        })
    </script>
</block>
<block name="meau">
    <div class="col-sm-3 col-md-2 sidebar">
        <ul class="nav nav-sidebar">
            <switch name="type">
                <case value="土建专业">
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                </case>
                <case value="铁塔专业">
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                </case>
                <case value="交流专业">
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>

                </case>
                <case value="配套专业">
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                </case>
                <default />
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
          </switch>
        </ul>
    </div>
</block>
<block name="content">
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <div class="modal-dialog" role="document" style="width:1000px;margin-top:0px;margin-left:0px;">
        <div class="modal-header" >
            <h2>新增优惠率<button class="btn btn-default" style="margin-left:20px;height:32px" name="back">返回</button></h2>
        </div>
        <div class="modal-body">
            <form class="form-horizontal" method="post" action='<{:U("Home/Module/discount",array("status"=>"addHandler"))}>'>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">所属专业</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="type" value="<{$type}>" readonly="readonly">
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">模块名称</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="moduel_name" value="<{$module_name}>" readonly="readonly">
                    </div>
                </div>


                <div class="form-group">
                        <label for="inputPassword" class="col-sm-3 control-label ">单位用户</label>
                        <div class="col-sm-9">
                           <select class="form-control" name="uid">
                                <option value="请选择">请选择</option>
                                <foreach name="resUser" item="v">
                                    <option value="<{$v.uid}>">
                                        <{$v.company}>-<{$v.depart}>-<{$v.position}>
                                    </option>
                                </foreach>
                            </select>
                        </div>
                </div>

                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">模块属性</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="class" value="<{$class}>" readonly="readonly">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">优惠率区间</label>
                    <div class="col-sm-9">
                         起始值:<input class="form-control"  type="number" name="lsection" value="">
                         结束值:
                           <input class="form-control" type="number" name="rsection" value="">
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">优惠率</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text"   name="discount" value="">
                        <input type="hidden" name="mid" value="<{$mid}>" >
                        <input type="hidden" name="modid" value="<{$modid}>" >
                    </div>
                </div>

                <div class="modal-footer">
                      <button type="reset" class="btn btn-default" data-dismiss="modal">取消</button>
                      <button type="submit" class="btn btn-primary">确定新增</button>
                </div>
            </form>
        </div>
    </div>
</div>
</block>
